package com.danskin.wechat.service;

import java.util.List;

import com.danskin.wechat.entity.StoreInfo;
import com.danskin.wechat.util.Page;
import com.danskin.wechat.vo.StoreQrcodeScanVo;

public interface StoreInfoService {
	
	/**
     * 根据主键获取门店信息
     * @param id
     * @return
     * @author makunsmac
     */
    StoreInfo selectByPrimaryKey(Integer id);
    
    /**
     * 生成门店二维码
     * @param accessToken
     * @param mpId
     * @param storeInfo
     * @return
     * @author makunsmac
     */
    boolean createStoreQrCode(String accessToken, int mpId, StoreInfo storeInfo, String realPath);
    
    /**
     * 去重查询所有的店铺编号
     * @return
     * @author makunsmac
     */
    List<String> selectStoreCodeList();
    
    /**
	 * 分页查询店铺二维码扫描记录
	 * 
	 * @param param
	 * @return
	 * @author makunsmac
	 */
	List<StoreQrcodeScanVo> listPageStoreQrcodeScan(Page page);
	
	/**
	 * 查询出所有符合条件的数据
	 * 
	 * @param param
	 * @return
	 * @author makunsmac
	 */
	List<StoreQrcodeScanVo> selectStoreQrcodeScanList(StoreQrcodeScanVo param);
	
	List<StoreInfo> getAllStoreByMpId(Integer mpId);
	
	List<StoreInfo> listPageStrore(Page page);
	
	List<StoreInfo> getStoreByCondition(StoreInfo store);
	
	int updateByPrimaryKeySelective(StoreInfo store);
	
	int insertSelective(StoreInfo store,String appId);

	List<StoreQrcodeScanVo> queryStoreQrcodeScanVoExport(String storeCode, String eventType, String startTime,
			String endTime, String mpId);

}
